package edu.nf.waimai.service.shop.impl;

import edu.nf.waimai.dao.shop.ShopTypeDAO;
import edu.nf.waimai.dao.shop.impl.ShopTypeDAOImpl;
import edu.nf.waimai.model.shop.ShopType;
import edu.nf.waimai.service.shop.ShopTypeService;

import java.util.List;

public class ShopTypeServiceImpl implements ShopTypeService {
    private ShopTypeDAO shopTypeDAO = new ShopTypeDAOImpl();

    /**
     * 查询全部商家信息
     * @return
     */
    @Override
    public List<ShopType> listShopType() {
        return shopTypeDAO.listShopType();
    }

    /**
     * 添加商家类型
     * @param shopType
     * @return
     */
    @Override
    public int addShopType(ShopType shopType) {
        return shopTypeDAO.addShopType(shopType);
    }
    /**
     * 删除商家类型
     * @param shopTypeId
     * @return
     */
    @Override
    public int delShopType(int shopTypeId) {
        return shopTypeDAO.delShopType(shopTypeId);
    }
}
